﻿namespace TSU.FAMC.ComputerEngineering.Classes.OrandTrees.Basis
{
    /// <summary>
    /// An edge of ORAND-tree.
    /// </summary>
    public class Edge : TreeElement
    {
        /// <summary>
        /// Clones tree element.
        /// </summary>
        /// <returns>Clones the element.</returns>
        public override object Clone()
        {
            var clone = new Edge
            {
                Data = Data,
                Parents = new ElementInterface(Parents),
                Children = new ElementInterface(Children)
            };

            return clone;
        }
    }
}
